#include"comm.hpp"

int main()
{
    int fd=open(PATH,O_WRONLY);
    if(fd<0)
    {
        perror("open");
        exit(FIFO_OPEN_ERR);
    }

    
    string line;
    while(true)
    {
        printf("please enter@ ");
        getline(cin,line);

        write(fd,line.c_str(),strlen(line.c_str()));

    }

    return 0;
}